// import dark theme
@use "element-plus/theme-chalk/src/dark/css-vars.scss" as *;

:root {
  --base-font-size: 14px;
}

html {
  font-size: var(--base-font-size);
  transition: font-size 0.5s ease-in-out;
}

@media (min-width: 768px) {
  :root {
    --base-font-size: 12px;
  }
}

@media (min-width: 1024px) {
  :root {
    --base-font-size: 13px;
  }
}

@media (min-width: 1440px) {
  :root {
    --base-font-size: 14px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: thin;
}

body {
  font-family: Inter, system-ui, Avenir, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

#app {
  width: 100vw;
  height: 100vh;
  background: var(--ep-color-bg, #efefef);
}
code {
  font-family: 'Courier New', Courier, monospace;
}

#nprogress .bar {
  background: var(--ep-color-primary-light-5) !important;
}

#nprogress .spinner-icon {
  border-top-color: var(--ep-color-primary-light-5) !important;  
  border-left-color: var(--ep-color-primary-light-5) !important;  
}

@font-face {
  font-family: 'PangMenZhengDao';
  src: url('~/assets/fonts/PangMenZhengDao.ttf');
}

.custom-drawer.ep-drawer {
  // --ep-drawer-bg-color: #19397d;
  --ep-border-color: #2a863f;
  --ep-input-focus-border: #3aa453;
  --ep-box-shadow-dark: 0px 6px 28px 16px rgba(0, 0, 0, 0.1), 0px 10px 16px rgba(0,0,0,0.2), 0px 12px 12px -2px rgba(0,0,0,0.2);
  .ep-drawer__header {
    margin-bottom: var(--ep-drawer-padding-primary);
  }
  .ep-drawer__footer {
    padding: 1rem;
  }
}